Support vendor dirs with "empty" directories
authorAlex Crichton <alex@alexcrichton.com>
Tue, 4 Apr 2017 23:28:42 +0000 (16:28 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 4 Apr 2017 23:28:42 +0000 (16:28 -0700)
commitc6fb4656280ca2779521bfbc9c2ce3e7f31bef29
tree4d437e78060b3a0458e28df6e4a3d6ed01261ed4
parentf5348cc321a032db95cd18e3129a4392d2e0a892
Support vendor dirs with "empty" directories

Looks like when vendor directories are checked into a VCS there's been instances
where deleting a folder in the VCS doesn't fully delete the folder from the
filesystem. This can lead to [spurious errors][moz] that are difficult to debug.

To help handle this tweak directory sources to ignore empty directories or
directories with only dotfiles by default.

[moz]: https://bugzilla.mozilla.org/show_bug.cgi?id=1342292
src/cargo/sources/directory.rs
tests/directory.rs